<!-- HTML header for doxygen 1.8.6-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="text/xhtml;charset=utf-8" http-equiv="Content-Type"/>
<meta content="IE=9" http-equiv="X-UA-Compatible"/>
<meta content="Doxygen 1.8.13" name="generator"/>
<title>OpenCV: Machine Learning</title>
<link href="../../opencv.ico" rel="shortcut icon" type="image/x-icon"/>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script src="../../jquery.js" type="text/javascript"></script>
<script src="../../dynsections.js" type="text/javascript"></script>
<script src="../../tutorial-utils.js" type="text/javascript"></script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script src="../../search/searchdata.js" type="text/javascript"></script>
<script src="../../search/search.js" type="text/javascript"></script>
<script type="text/x-mathjax-config">
  MathJax.Hub.Config({
    extensions: ["tex2jax.js", "TeX/AMSmath.js", "TeX/AMSsymbols.js"],
    jax: ["input/TeX","output/HTML-CSS"],
});
//<![CDATA[
MathJax.Hub.Config(
{
  TeX: {
      Macros: {
          matTT: [ "\\[ \\left|\\begin{array}{ccc} #1 & #2 & #3\\\\ #4 & #5 & #6\\\\ #7 & #8 & #9 \\end{array}\\right| \\]", 9],
          fork: ["\\left\\{ \\begin{array}{l l} #1 & \\mbox{#2}\\\\ #3 & \\mbox{#4}\\\\ \\end{array} \\right.", 4],
          forkthree: ["\\left\\{ \\begin{array}{l l} #1 & \\mbox{#2}\\\\ #3 & \\mbox{#4}\\\\ #5 & \\mbox{#6}\\\\ \\end{array} \\right.", 6],
          forkfour: ["\\left\\{ \\begin{array}{l l} #1 & \\mbox{#2}\\\\ #3 & \\mbox{#4}\\\\ #5 & \\mbox{#6}\\\\ #7 & \\mbox{#8}\\\\ \\end{array} \\right.", 8],
          vecthree: ["\\begin{bmatrix} #1\\\\ #2\\\\ #3 \\end{bmatrix}", 3],
          vecthreethree: ["\\begin{bmatrix} #1 & #2 & #3\\\\ #4 & #5 & #6\\\\ #7 & #8 & #9 \\end{bmatrix}", 9],
          cameramatrix: ["#1 = \\begin{bmatrix} f_x & 0 & c_x\\\\ 0 & f_y & c_y\\\\ 0 & 0 & 1 \\end{bmatrix}", 1],
          distcoeffs: ["(k_1, k_2, p_1, p_2[, k_3[, k_4, k_5, k_6 [, s_1, s_2, s_3, s_4[, \\tau_x, \\tau_y]]]]) \\text{ of 4, 5, 8, 12 or 14 elements}"],
          distcoeffsfisheye: ["(k_1, k_2, k_3, k_4)"],
          hdotsfor: ["\\dots", 1],
          mathbbm: ["\\mathbb{#1}", 1],
          bordermatrix: ["\\matrix{#1}", 1]
      }
  }
}
);
//]]>
</script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js" type="text/javascript"></script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css"/>
<link href="../../stylesheet.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<!--#include virtual="/google-search.html"-->
<table cellpadding="0" cellspacing="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="../../opencv-logo-small.png"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">OpenCV
    <span id="projectnumber">4.5.2</span>
   </div>
   <div id="projectbrief">Open Source Computer Vision</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</script>
<script src="../../menudata.js" type="text/javascript"></script>
<script src="../../menu.js" type="text/javascript"></script>
<script type="text/javascript">
$(function() {
  initMenu('../../',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow" onkeydown="return searchBox.OnSearchSelectKey(event)" onmouseout="return searchBox.OnSearchSelectHide()" onmouseover="return searchBox.OnSearchSelectShow()">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe frameborder="0" id="MSearchResults" name="MSearchResults" src="javascript:void(0)">
</iframe>
</div>
<div class="header">
  <div class="summary">
<a href="#nested-classes">Classes</a> |
<a href="#typedef-members">Typedefs</a> |
<a href="#enum-members">Enumerations</a> |
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">Machine Learning</div>  </div>
</div><!--header-->
<div class="contents">
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr class="memitem:"><td align="right" class="memItemLeft" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d0/dce/classcv_1_1ml_1_1ANN__MLP.html">cv::ml::ANN_MLP</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft"> </td><td class="mdescRight">Artificial Neural Networks - Multi-Layer Perceptrons.  <a href="../../d0/dce/classcv_1_1ml_1_1ANN__MLP.html#details">More...</a><br/></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:"><td align="right" class="memItemLeft" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d6/d7a/classcv_1_1ml_1_1Boost.html">cv::ml::Boost</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft"> </td><td class="mdescRight">Boosted tree classifier derived from <a class="el" href="../../d8/d89/classcv_1_1ml_1_1DTrees.html" title="The class represents a single decision tree or a collection of decision trees. ">DTrees</a>.  <a href="../../d6/d7a/classcv_1_1ml_1_1Boost.html#details">More...</a><br/></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:"><td align="right" class="memItemLeft" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d8/d89/classcv_1_1ml_1_1DTrees.html">cv::ml::DTrees</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft"> </td><td class="mdescRight">The class represents a single decision tree or a collection of decision trees.  <a href="../../d8/d89/classcv_1_1ml_1_1DTrees.html#details">More...</a><br/></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:"><td align="right" class="memItemLeft" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d1/dfb/classcv_1_1ml_1_1EM.html">cv::ml::EM</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft"> </td><td class="mdescRight">The class implements the Expectation Maximization algorithm.  <a href="../../d1/dfb/classcv_1_1ml_1_1EM.html#details">More...</a><br/></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:"><td align="right" class="memItemLeft" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../dd/de1/classcv_1_1ml_1_1KNearest.html">cv::ml::KNearest</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft"> </td><td class="mdescRight">The class implements K-Nearest Neighbors model.  <a href="../../dd/de1/classcv_1_1ml_1_1KNearest.html#details">More...</a><br/></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:"><td align="right" class="memItemLeft" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d6/df9/classcv_1_1ml_1_1LogisticRegression.html">cv::ml::LogisticRegression</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft"> </td><td class="mdescRight">Implements Logistic Regression classifier.  <a href="../../d6/df9/classcv_1_1ml_1_1LogisticRegression.html#details">More...</a><br/></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:"><td align="right" class="memItemLeft" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d4/d8e/classcv_1_1ml_1_1NormalBayesClassifier.html">cv::ml::NormalBayesClassifier</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft"> </td><td class="mdescRight">Bayes classifier for normally distributed data.  <a href="../../d4/d8e/classcv_1_1ml_1_1NormalBayesClassifier.html#details">More...</a><br/></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:"><td align="right" class="memItemLeft" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d6/dca/classcv_1_1ml_1_1ParamGrid.html">cv::ml::ParamGrid</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft"> </td><td class="mdescRight">The structure represents the logarithmic grid range of statmodel parameters.  <a href="../../d6/dca/classcv_1_1ml_1_1ParamGrid.html#details">More...</a><br/></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:"><td align="right" class="memItemLeft" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d0/d65/classcv_1_1ml_1_1RTrees.html">cv::ml::RTrees</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft"> </td><td class="mdescRight">The class implements the random forest predictor.  <a href="../../d0/d65/classcv_1_1ml_1_1RTrees.html#details">More...</a><br/></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:"><td align="right" class="memItemLeft" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../dc/db4/structcv_1_1ml_1_1SimulatedAnnealingSolverSystem.html">cv::ml::SimulatedAnnealingSolverSystem</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft"> </td><td class="mdescRight">This class declares example interface for system state used in simulated annealing optimization algorithm.  <a href="../../dc/db4/structcv_1_1ml_1_1SimulatedAnnealingSolverSystem.html#details">More...</a><br/></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:"><td align="right" class="memItemLeft" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/d7d/classcv_1_1ml_1_1StatModel.html">cv::ml::StatModel</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft"> </td><td class="mdescRight">Base class for statistical models in OpenCV ML.  <a href="../../db/d7d/classcv_1_1ml_1_1StatModel.html#details">More...</a><br/></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:"><td align="right" class="memItemLeft" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d1/d2d/classcv_1_1ml_1_1SVM.html">cv::ml::SVM</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft"> </td><td class="mdescRight">Support Vector Machines.  <a href="../../d1/d2d/classcv_1_1ml_1_1SVM.html#details">More...</a><br/></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:"><td align="right" class="memItemLeft" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/d54/classcv_1_1ml_1_1SVMSGD.html">cv::ml::SVMSGD</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft"> </td><td class="mdescRight">Stochastic Gradient Descent <a class="el" href="../../d1/d2d/classcv_1_1ml_1_1SVM.html" title="Support Vector Machines. ">SVM</a> classifier.  <a href="../../de/d54/classcv_1_1ml_1_1SVMSGD.html#details">More...</a><br/></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:"><td align="right" class="memItemLeft" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../dc/d32/classcv_1_1ml_1_1TrainData.html">cv::ml::TrainData</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft"> </td><td class="mdescRight">Class encapsulating training data.  <a href="../../dc/d32/classcv_1_1ml_1_1TrainData.html#details">More...</a><br/></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="typedef-members"></a>
Typedefs</h2></td></tr>
<tr class="memitem:ga41d135383c258bd312a54a7964a6e7c3"><td align="right" class="memItemLeft" valign="top">typedef <a class="el" href="../../d0/dce/classcv_1_1ml_1_1ANN__MLP.html">ANN_MLP</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="../../dd/ded/group__ml.html#ga41d135383c258bd312a54a7964a6e7c3">cv::ml::ANN_MLP_ANNEAL</a></td></tr>
<tr class="separator:ga41d135383c258bd312a54a7964a6e7c3"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="enum-members"></a>
Enumerations</h2></td></tr>
<tr class="memitem:gae5b308134f67997a42e5ca48c2713bcb"><td align="right" class="memItemLeft" valign="top">enum  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../dd/ded/group__ml.html#gae5b308134f67997a42e5ca48c2713bcb">cv::ml::ErrorTypes</a> { <br/>
  <a class="el" href="../../dd/ded/group__ml.html#ggae5b308134f67997a42e5ca48c2713bcbad0e961149b375d9c9e00d79ac4e4f029">cv::ml::TEST_ERROR</a> = 0, 
<br/>
  <a class="el" href="../../dd/ded/group__ml.html#ggae5b308134f67997a42e5ca48c2713bcbadbd34852ad37a296e9ecff30b252ec69">cv::ml::TRAIN_ERROR</a> = 1
<br/>
 }<tr class="memdesc:gae5b308134f67997a42e5ca48c2713bcb"><td class="mdescLeft"> </td><td class="mdescRight">Error types  <a href="../../dd/ded/group__ml.html#gae5b308134f67997a42e5ca48c2713bcb">More...</a><br/></td></tr>
</td></tr>
<tr class="separator:gae5b308134f67997a42e5ca48c2713bcb"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga9c57a2b823008dda53d2c7f7059a8710"><td align="right" class="memItemLeft" valign="top">enum  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../dd/ded/group__ml.html#ga9c57a2b823008dda53d2c7f7059a8710">cv::ml::SampleTypes</a> { <br/>
  <a class="el" href="../../dd/ded/group__ml.html#gga9c57a2b823008dda53d2c7f7059a8710ab8565ac2eb79152a4e3c80b0e9c9fd4c">cv::ml::ROW_SAMPLE</a> = 0, 
<br/>
  <a class="el" href="../../dd/ded/group__ml.html#gga9c57a2b823008dda53d2c7f7059a8710a5c76025220c9a8f5dbd2e0e49783b214">cv::ml::COL_SAMPLE</a> = 1
<br/>
 }<tr class="memdesc:ga9c57a2b823008dda53d2c7f7059a8710"><td class="mdescLeft"> </td><td class="mdescRight">Sample types.  <a href="../../dd/ded/group__ml.html#ga9c57a2b823008dda53d2c7f7059a8710">More...</a><br/></td></tr>
</td></tr>
<tr class="separator:ga9c57a2b823008dda53d2c7f7059a8710"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gafd82a0e568907b8680027cb246a6eb06"><td align="right" class="memItemLeft" valign="top">enum  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../dd/ded/group__ml.html#gafd82a0e568907b8680027cb246a6eb06">cv::ml::VariableTypes</a> { <br/>
  <a class="el" href="../../dd/ded/group__ml.html#ggafd82a0e568907b8680027cb246a6eb06ae94fb869759383fce5f02a63b4666a3f">cv::ml::VAR_NUMERICAL</a> =0, 
<br/>
  <a class="el" href="../../dd/ded/group__ml.html#ggafd82a0e568907b8680027cb246a6eb06a077b19eb913ac28b0a7ca765943cd188">cv::ml::VAR_ORDERED</a> =0, 
<br/>
  <a class="el" href="../../dd/ded/group__ml.html#ggafd82a0e568907b8680027cb246a6eb06aa27f7cc3f72af77e1c2b39f5d91db078">cv::ml::VAR_CATEGORICAL</a> =1
<br/>
 }<tr class="memdesc:gafd82a0e568907b8680027cb246a6eb06"><td class="mdescLeft"> </td><td class="mdescRight">Variable types.  <a href="../../dd/ded/group__ml.html#gafd82a0e568907b8680027cb246a6eb06">More...</a><br/></td></tr>
</td></tr>
<tr class="separator:gafd82a0e568907b8680027cb246a6eb06"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ga28249d75f6dc48d8eae29731395f2027"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../dd/ded/group__ml.html#ga28249d75f6dc48d8eae29731395f2027">cv::ml::createConcentricSpheresTestSet</a> (int nsamples, int nfeatures, int nclasses, <a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> samples, <a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> responses)</td></tr>
<tr class="memdesc:ga28249d75f6dc48d8eae29731395f2027"><td class="mdescLeft"> </td><td class="mdescRight">Creates test set.  <a href="../../dd/ded/group__ml.html#ga28249d75f6dc48d8eae29731395f2027">More...</a><br/></td></tr>
<tr class="separator:ga28249d75f6dc48d8eae29731395f2027"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gaf444266b05eeb29f24fc4fe6b6972c8d"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../dd/ded/group__ml.html#gaf444266b05eeb29f24fc4fe6b6972c8d">cv::ml::randMVNormal</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> <a class="el" href="../../d2/de8/group__core__array.html#ga191389f8a0e58180bb13a727782cd461">mean</a>, <a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> cov, int nsamples, <a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> samples)</td></tr>
<tr class="memdesc:gaf444266b05eeb29f24fc4fe6b6972c8d"><td class="mdescLeft"> </td><td class="mdescRight">Generates <em>sample</em> from multivariate normal distribution.  <a href="../../dd/ded/group__ml.html#gaf444266b05eeb29f24fc4fe6b6972c8d">More...</a><br/></td></tr>
<tr class="separator:gaf444266b05eeb29f24fc4fe6b6972c8d"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga2b136c7508a37057e01ef2473694714f"><td class="memTemplParams" colspan="2">template&lt;class SimulatedAnnealingSolverSystem &gt; </td></tr>
<tr class="memitem:ga2b136c7508a37057e01ef2473694714f"><td align="right" class="memTemplItemLeft" valign="top">int </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="../../dd/ded/group__ml.html#ga2b136c7508a37057e01ef2473694714f">cv::ml::simulatedAnnealingSolver</a> (<a class="el" href="../../dc/db4/structcv_1_1ml_1_1SimulatedAnnealingSolverSystem.html">SimulatedAnnealingSolverSystem</a> &amp;solverSystem, double initialTemperature, double finalTemperature, double coolingRatio, size_t iterationsPerStep, double *lastTemperature=NULL, <a class="el" href="../../d1/dd6/classcv_1_1RNG.html">cv::RNG</a> &amp;rngEnergy=<a class="el" href="../../d2/de8/group__core__array.html#ga75843061d150ad6564b5447e38e57722">cv::theRNG</a>())</td></tr>
<tr class="memdesc:ga2b136c7508a37057e01ef2473694714f"><td class="mdescLeft"> </td><td class="mdescRight">The class implements simulated annealing for optimization.  <a href="../../dd/ded/group__ml.html#ga2b136c7508a37057e01ef2473694714f">More...</a><br/></td></tr>
<tr class="separator:ga2b136c7508a37057e01ef2473694714f"><td class="memSeparator" colspan="2"> </td></tr>
</table>
<a id="details" name="details"></a><h2 class="groupheader">Detailed Description</h2>
<p>The Machine Learning Library (MLL) is a set of classes and functions for statistical classification, regression, and clustering of data.</p>
<p>Most of the classification and regression algorithms are implemented as C++ classes. As the algorithms have different sets of features (like an ability to handle missing measurements or categorical input variables), there is a little common ground between the classes. This common ground is defined by the class <a class="el" href="../../db/d7d/classcv_1_1ml_1_1StatModel.html" title="Base class for statistical models in OpenCV ML. ">cv::ml::StatModel</a> that all the other ML classes are derived from.</p>
<p>See detailed overview here: <a class="el" href="../../dc/dd6/ml_intro.html">Machine Learning Overview</a>. </p>
<h2 class="groupheader">Typedef Documentation</h2>
<a id="ga41d135383c258bd312a54a7964a6e7c3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga41d135383c258bd312a54a7964a6e7c3">◆ </a></span>ANN_MLP_ANNEAL</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef <a class="el" href="../../d0/dce/classcv_1_1ml_1_1ANN__MLP.html">ANN_MLP</a> <a class="el" href="../../dd/ded/group__ml.html#ga41d135383c258bd312a54a7964a6e7c3">cv::ml::ANN_MLP_ANNEAL</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d3/d29/ml_8hpp.html">opencv2/ml.hpp</a>&gt;</code></p>
</div>
</div>
<h2 class="groupheader">Enumeration Type Documentation</h2>
<a id="gae5b308134f67997a42e5ca48c2713bcb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gae5b308134f67997a42e5ca48c2713bcb">◆ </a></span>ErrorTypes</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="../../dd/ded/group__ml.html#gae5b308134f67997a42e5ca48c2713bcb">cv::ml::ErrorTypes</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d3/d29/ml_8hpp.html">opencv2/ml.hpp</a>&gt;</code></p>
<p>Error types </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="ggae5b308134f67997a42e5ca48c2713bcbad0e961149b375d9c9e00d79ac4e4f029"></a>TEST_ERROR <div class="python_language">Python: cv.ml.TEST_ERROR</div></td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="ggae5b308134f67997a42e5ca48c2713bcbadbd34852ad37a296e9ecff30b252ec69"></a>TRAIN_ERROR <div class="python_language">Python: cv.ml.TRAIN_ERROR</div></td><td class="fielddoc"></td></tr>
</table>
</div>
</div>
<a id="ga9c57a2b823008dda53d2c7f7059a8710"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga9c57a2b823008dda53d2c7f7059a8710">◆ </a></span>SampleTypes</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="../../dd/ded/group__ml.html#ga9c57a2b823008dda53d2c7f7059a8710">cv::ml::SampleTypes</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d3/d29/ml_8hpp.html">opencv2/ml.hpp</a>&gt;</code></p>
<p>Sample types. </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="gga9c57a2b823008dda53d2c7f7059a8710ab8565ac2eb79152a4e3c80b0e9c9fd4c"></a>ROW_SAMPLE <div class="python_language">Python: cv.ml.ROW_SAMPLE</div></td><td class="fielddoc"><p>each training sample is a row of samples </p>
</td></tr>
<tr><td class="fieldname"><a id="gga9c57a2b823008dda53d2c7f7059a8710a5c76025220c9a8f5dbd2e0e49783b214"></a>COL_SAMPLE <div class="python_language">Python: cv.ml.COL_SAMPLE</div></td><td class="fielddoc"><p>each training sample occupies a column of samples </p>
</td></tr>
</table>
</div>
</div>
<a id="gafd82a0e568907b8680027cb246a6eb06"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gafd82a0e568907b8680027cb246a6eb06">◆ </a></span>VariableTypes</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="../../dd/ded/group__ml.html#gafd82a0e568907b8680027cb246a6eb06">cv::ml::VariableTypes</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d3/d29/ml_8hpp.html">opencv2/ml.hpp</a>&gt;</code></p>
<p>Variable types. </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="ggafd82a0e568907b8680027cb246a6eb06ae94fb869759383fce5f02a63b4666a3f"></a>VAR_NUMERICAL <div class="python_language">Python: cv.ml.VAR_NUMERICAL</div></td><td class="fielddoc"><p>same as VAR_ORDERED </p>
</td></tr>
<tr><td class="fieldname"><a id="ggafd82a0e568907b8680027cb246a6eb06a077b19eb913ac28b0a7ca765943cd188"></a>VAR_ORDERED <div class="python_language">Python: cv.ml.VAR_ORDERED</div></td><td class="fielddoc"><p>ordered variables </p>
</td></tr>
<tr><td class="fieldname"><a id="ggafd82a0e568907b8680027cb246a6eb06aa27f7cc3f72af77e1c2b39f5d91db078"></a>VAR_CATEGORICAL <div class="python_language">Python: cv.ml.VAR_CATEGORICAL</div></td><td class="fielddoc"><p>categorical variables </p>
</td></tr>
</table>
</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
<a id="ga28249d75f6dc48d8eae29731395f2027"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga28249d75f6dc48d8eae29731395f2027">◆ </a></span>createConcentricSpheresTestSet()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::ml::createConcentricSpheresTestSet </td>
          <td>(</td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>nsamples</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>nfeatures</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>nclasses</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> </td>
          <td class="paramname"><em>samples</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> </td>
          <td class="paramname"><em>responses</em> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d3/d29/ml_8hpp.html">opencv2/ml.hpp</a>&gt;</code></p>
<p>Creates test set. </p>
</div>
</div>
<a id="gaf444266b05eeb29f24fc4fe6b6972c8d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaf444266b05eeb29f24fc4fe6b6972c8d">◆ </a></span>randMVNormal()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::ml::randMVNormal </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>mean</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>cov</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>nsamples</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> </td>
          <td class="paramname"><em>samples</em> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d3/d29/ml_8hpp.html">opencv2/ml.hpp</a>&gt;</code></p>
<p>Generates <em>sample</em> from multivariate normal distribution. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">mean</td><td>an average row vector </td></tr>
    <tr><td class="paramname">cov</td><td>symmetric covariation matrix </td></tr>
    <tr><td class="paramname">nsamples</td><td>returned samples count </td></tr>
    <tr><td class="paramname">samples</td><td>returned samples array </td></tr>
  </table>
  </dd>
</dl>
</div>
</div>
<a id="ga2b136c7508a37057e01ef2473694714f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga2b136c7508a37057e01ef2473694714f">◆ </a></span>simulatedAnnealingSolver()</h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class SimulatedAnnealingSolverSystem &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">int cv::ml::simulatedAnnealingSolver </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/db4/structcv_1_1ml_1_1SimulatedAnnealingSolverSystem.html">SimulatedAnnealingSolverSystem</a> &amp; </td>
          <td class="paramname"><em>solverSystem</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double </td>
          <td class="paramname"><em>initialTemperature</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double </td>
          <td class="paramname"><em>finalTemperature</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double </td>
          <td class="paramname"><em>coolingRatio</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t </td>
          <td class="paramname"><em>iterationsPerStep</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double * </td>
          <td class="paramname"><em>lastTemperature</em> = <code>NULL</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../d1/dd6/classcv_1_1RNG.html">cv::RNG</a> &amp; </td>
          <td class="paramname"><em>rngEnergy</em> = <code><a class="el" href="../../d2/de8/group__core__array.html#ga75843061d150ad6564b5447e38e57722">cv::theRNG</a>()</code> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d3/d29/ml_8hpp.html">opencv2/ml.hpp</a>&gt;</code></p>
<p>The class implements simulated annealing for optimization. </p>
<p><a class="el" href="../../d0/de3/citelist.html#CITEREF_Kirkpatrick83">[129]</a> for details</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">solverSystem</td><td>optimization system (see <a class="el" href="../../dc/db4/structcv_1_1ml_1_1SimulatedAnnealingSolverSystem.html" title="This class declares example interface for system state used in simulated annealing optimization algor...">SimulatedAnnealingSolverSystem</a>) </td></tr>
    <tr><td class="paramname">initialTemperature</td><td>initial temperature </td></tr>
    <tr><td class="paramname">finalTemperature</td><td>final temperature </td></tr>
    <tr><td class="paramname">coolingRatio</td><td>temperature step multiplies </td></tr>
    <tr><td class="paramname">iterationsPerStep</td><td>number of iterations per temperature changing step </td></tr>
    <tr><td class="paramname">lastTemperature</td><td>optional output for last used temperature </td></tr>
    <tr><td class="paramname">rngEnergy</td><td>specify custom random numbers generator (<a class="el" href="../../d2/de8/group__core__array.html#ga75843061d150ad6564b5447e38e57722" title="Returns the default random number generator. ">cv::theRNG()</a> by default) </td></tr>
  </table>
  </dd>
</dl>
</div>
</div>
</div><!-- contents -->
<!-- HTML footer for doxygen 1.8.6-->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Fri Apr 2 2021 11:36:41 for OpenCV by  <a href="http://www.doxygen.org/index.html">
<img alt="doxygen" class="footer" src="../../doxygen.png"/>
</a> 1.8.13
</small></address>
<script type="text/javascript">
//<![CDATA[
addTutorialsButtons();
//]]>
</script>
</body>
</html>
